WebSetCookie

Note: This statement is only used in load test scripts. See Load Testing for more information.

Sets a cookie to send with other load testing statements.

Syntax

WebSetCookie("Name", "Value", "URL", IsDomainWide)

Arguments

Argument Description
Name Cookie name.
Value Cookie value.
URL URL that the cookie is valid for.
IsDomainWide Specifies to send the cookie to subdomains of the URL. True sends the cookie to all subdomains. False does not send the cookie to any subdomains. If not specified, False is used.

Example

WebSetCookie("loginname", "Guest", "http://wysicorp.com/", True)